package br.com.assemble.hermeserp.model.pojos.comercial;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import br.com.assemble.hermeserp.ejb.annotation.DaoClass;
import br.com.assemble.hermeserp.model.BasePojo;


/**
 * The persistent class for the REGIOES_COMERCIAIS database table.
 * 
 */
@Entity
@Table(name="REGIOES_COMERCIAIS")
@DaoClass(value="RegiaoComercialDao", pu="hermes-pu")
public class RegiaoComercial extends BasePojo implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="REG_IDENTIFY", unique=true, nullable=false)
	private BigInteger regIdentify;

	@Column(name="REG_NOME", nullable=false, length=100)
	private String regNome;

	@Column(name="REG_SITUACAO", nullable=false, length=1)
	private Integer regSituacao;

	//bi-directional many-to-one association to Divisao
	@OneToMany(mappedBy="regiaoComercial")
	private List<Divisao> divisaoCollection;

    public RegiaoComercial() {
    }

	public BigInteger getRegIdentify() {
		return this.regIdentify;
	}

	public void setRegIdentify(BigInteger regIdentify) {
		this.regIdentify = regIdentify;
	}

	public String getRegNome() {
		return this.regNome;
	}

	public void setRegNome(String regNome) {
		this.regNome = regNome;
	}

	public Integer getRegSituacao() {
		return this.regSituacao;
	}

	public void setRegSituacao(Integer regSituacao) {
		this.regSituacao = regSituacao;
	}

	public List<Divisao> getDivisaoCollection() {
		return this.divisaoCollection;
	}

	public void setDivisaoCollection(List<Divisao> divisaoCollection) {
		this.divisaoCollection = divisaoCollection;
	}
	
}